<%-- 
    Document   : DanhSachSanPhamView
    Created on : 13-02-2011, 21:21:03
    Author     : Mr Long
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html> 
    <div class="mnutitle"><span>Quản Lí Hình Ảnh Sản Phẩm</span></div>
    <div class="chucnangsp"><a href="themhinhsanpham.html?MaSP=${sanPham.maSanPham}">Thêm hình</a></div>
    <!--body content-->  
    <div class="boxbody">
        <div class="danhsachsanpham">
            <div class="sprows">
                <div class="sprowhd">                   
                   <span>${sanPham.tenSanPham}</span>                  
                </div>
            </div>
            <div class="sprows">
                <div class="sprowhd">
                    <div class="clrowstt"><span>STT</span></div>
                    <div class="clrowtxt"><span>Hình Ảnh</span></div>                    
                    <div class="clrowcn"><span>Chức Năng</span></div>
                </div>
            </div>
            <c:forEach items="${lstHA}" var="hAnh" varStatus="i">
                <div class="sprows">
                    <div class="sprow">                       
                        <div class="clrowstt">${i.count}</div>
                        <div class="clrowtsp"><img style=" width:90px; height:90px;"  alt="" src="${hAnh.duongDan}"></div>                        
                        <div class="clrowcn"><div class="cnbutton"><a href="xoahinhanh.html?MaHA=${hAnh.maHinhAnh}&MaSP=${sanPham.maSanPham}">Xóa</a></div></div>
                    </div>
                </div>
            </c:forEach>
        </div>   
    </div>
</html>
